package com.zmn.oms.dubbo.dto.common.work;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 类描述：完成码
 *
 * @author liuying
 * @date 2021/07/20 17:26
 */
@ApiModel("完成码")
@Data
@ToString(callSuper = true)
public class MasterWorkCompleteCodeDIO extends BaseRequestDIO {

    /**
     * 工程师ID
     */
    @ApiModelProperty("工程师ID")
    @NotEmpty(message = "工程师ID不能为空")
    private Integer masterId;

    /**
     * 订单ID
     */
    @ApiModelProperty("订单ID")
    @NotEmpty(message = "订单ID不能为空")
    private Long orderId;

    /**
     * 工单ID
     */
    @ApiModelProperty("工单ID")
    @NotEmpty(message = "工单ID不能为空")
    private Long workId;

    /**
     * 完成码
     */
    @ApiModelProperty("完成码")
    @NotEmpty(message = "完成码不能为空")
    @Size(min = 1, message = "完成码不能为空")
    private String code;
}
